package structure.composite.abstracts;

public abstract class OrganizationComponent {
    private String description;

    public OrganizationComponent(String description) {
        super();
        this.description = description;
    }

    public void add(OrganizationComponent component) {
        // 默认实现
        throw new UnsupportedOperationException();
    }

    public void remove(OrganizationComponent component) {
        throw new UnsupportedOperationException();
    }

    public void print() {
        throw new UnsupportedOperationException();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
